package com.nosnow.gmall.manage.mapper;

import com.nosnow.gmall.bean.SpuSaleAttr;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @类名称：SpuSaleAttrMapper
 * @类描述：spu销售属性表Mapper
 * @author: bingHeng
 * @Date 2019.07.13
 * @Version: 1.0
*/
public interface SpuSaleAttrMapper extends Mapper<SpuSaleAttr> {

    /**
     * 根据spuId 获取销售属性
     * @param spuId
     * @return
     */
    List<SpuSaleAttr> selectSpuSaleAttrList(Long spuId);


    /**
     * 根据skuId和spuId获取销售属性列表
     * @param skuId
     * @param spuId
     * @return
     */
    List<SpuSaleAttr> selectSpuSaleAttrListCheckBySku(Long skuId, Long spuId);
}
